Defining the feature model¶
Overview¶
Next Design allows you to define the structure of your feature model in a tree diagram format and define constraints between features.
The steps below define the feature model in the following order:
- Start product line development in the project
- Define the structure of the feature model
- Add constraints between features
- Check feature model integrity
Start product line development¶
To apply product line development to your project:
Operating procedure
- Select the root project in the Model Navigator.
- From the project screen, click the Start link in the product line.
- This enables you to use the functions for product line development.
Attention
- You cannot stop the product line development after starting the product line development and saving the project.
Define the structure of the feature model¶
Switch to Feature Editor
Follow the steps below to create/edit the feature model.
Operating procedure
- Click [Feature Model] displayed in the product line of the project screen to switch to the feature editor.
You can also switch to the feature editor using the following procedure.
Other operating procedures
- Switch the navigator to "Product line navigator".
- Select [Feature Model] directly under the project.
Edit feature model
To add features using the Feature Editor, follow the same steps as for model editing in the tree diagram.
Operating procedure
- Select a feature type from the toolbox and drag and drop it on the feature model.
Feature Type | Description |
---|---|
Mandatory Feature | Must be selected if parent feature is selected |
Optional Feature | Optional features if the parent feature is selected |
Alternative Feature | If the parent feature is selected, any one of the alternative features of siblings should be selected |
Or Feature | If at least one of the sibling disjunction features should be selected if the parent feature is selected |
Feature Group | Tree-structured node that represents the concept of grouping multiple features |
You can also add features using the following steps.
Other operating procedures
- Select the parent feature in the feature editor.
- From the ribbon, click Product Line> Feature> Create and select the type of feature you want to add.
Change feature type
To change the type of an existing feature, do the following:
Operating procedure
- Select the feature of interest.
- Do one of the following to change the feature type.
- Right-click the selected features and select the type from [Change Kind] in the context menu.
- From the ribbon, click Product Line> Feature> Change Kind and select the feature type.
Set the initial selection state of features
To change the initial state of a feature for a product to the selected state during configuration, use the following procedure to change the property.
Operating procedure
- Right-click the feature and click Property on the context menu.
- Check the checkbox of [Property]> [Basic information]> [Whether to make initial selection] displayed in the inspector on the right side.
Note
- Mandatory features will be initially selected regardless of the check state of [Whether to make initial selection].
Describe details in feature tree format
To provide a detailed description for each feature:
Operating procedure
- Switch the view in the Feature Editor to Feature Tree.
- Edit the Description column in the tree grid.
Add constraints between features¶
Adding constraints between features is similar to adding relationships between models in an ER diagram:
Operating procedure
- Associate features with each other by drag and drop operation.
- Click the constraint type from the choices that pop up.
Constraint type | Description |
---|---|
Exclusion | Represents a relationship in which features with exclusion constraints cannot be selected simultaneously. |
Equals | Mutually dependent features represent relationships that must be selected at the same time. |
Requires | When selecting the dependent source feature, the dependent feature also represents the relationship that should be selected. |
You can also add constraints between features using the following procedure.
Other operating procedures
- Select the source and destination features in the Feature Editor.
- From the ribbon, click Product Line> Feature> Add constraint and select the constraint type.
Verify feature model integrity¶
Check integrity
To check the integrity of the structure and constraints of your feature model:
Operating procedure
- Click [Feature Model] displayed in the product line of the project screen to switch to the feature editor.
- Click Display> Pane> Error List on the ribbon to display the error list.
- Click Product Line> Feature> Check Consistency on the ribbon.
- If there is an error, it will be displayed in the error list and will be displayed in the feature editor.
Jump to error location
Follow the procedure below to jump from the error displayed in the error list to the relevant part and correct it.
Operating procedure
- Double-click the error displayed in the error list to jump to the error location in the feature editor.
- Refer to the error message and correct the feature type or constraint between features.
Cancel error display
To cancel the error display, follow the procedure below.
Operating procedure
- Do one of the following:
- Click the [Clear error] button on the toolbar of the error list.
- From the ribbon, click [▼] at the bottom of [Home]> [Model]> [Check Error], and click [Clear Error].